package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SoftElement;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLBigDecimalTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SoftElementProxy extends AbstractProxyEntity<SoftElementProxy, SoftElement> {

    private static final Class<SoftElement> entityClass = SoftElement.class;

    public static final SoftElementProxy TABLE = createTable().createEmpty();

    public static SoftElementProxy createTable() {
        return new SoftElementProxy();
    }

    public SoftElementProxy() {
    }

    /**
     * {@link SoftElement#getSystemId}
     */
    public SQLStringTypeColumn<SoftElementProxy> systemId() {
        return getStringTypeColumn("systemId");
    }

    /**
     * {@link SoftElement#getElementName}
     */
    public SQLStringTypeColumn<SoftElementProxy> elementName() {
        return getStringTypeColumn("elementName");
    }

    /**
     * {@link SoftElement#getElementRow}
     */
    public SQLBigDecimalTypeColumn<SoftElementProxy> elementRow() {
        return getBigDecimalTypeColumn("elementRow");
    }

    /**
     * {@link SoftElement#getElementCol}
     */
    public SQLBigDecimalTypeColumn<SoftElementProxy> elementCol() {
        return getBigDecimalTypeColumn("elementCol");
    }

    /**
     * {@link SoftElement#getElementRowspan}
     */
    public SQLBigDecimalTypeColumn<SoftElementProxy> elementRowspan() {
        return getBigDecimalTypeColumn("elementRowspan");
    }

    /**
     * {@link SoftElement#getElementColspan}
     */
    public SQLBigDecimalTypeColumn<SoftElementProxy> elementColspan() {
        return getBigDecimalTypeColumn("elementColspan");
    }

    /**
     * {@link SoftElement#getElementAddr}
     */
    public SQLStringTypeColumn<SoftElementProxy> elementAddr() {
        return getStringTypeColumn("elementAddr");
    }

    @Override
    public Class<SoftElement> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SoftElementProxyFetcher FETCHER = new SoftElementProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SoftElementProxyFetcher extends AbstractFetcher<SoftElementProxy, SoftElement, SoftElementProxyFetcher> {

        public SoftElementProxyFetcher(SoftElementProxy proxy, SoftElementProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link SoftElement#getSystemId}
         */
        public SoftElementProxyFetcher systemId() {
            return add(getProxy().systemId());
        }

        /**
         * {@link SoftElement#getElementName}
         */
        public SoftElementProxyFetcher elementName() {
            return add(getProxy().elementName());
        }

        /**
         * {@link SoftElement#getElementRow}
         */
        public SoftElementProxyFetcher elementRow() {
            return add(getProxy().elementRow());
        }

        /**
         * {@link SoftElement#getElementCol}
         */
        public SoftElementProxyFetcher elementCol() {
            return add(getProxy().elementCol());
        }

        /**
         * {@link SoftElement#getElementRowspan}
         */
        public SoftElementProxyFetcher elementRowspan() {
            return add(getProxy().elementRowspan());
        }

        /**
         * {@link SoftElement#getElementColspan}
         */
        public SoftElementProxyFetcher elementColspan() {
            return add(getProxy().elementColspan());
        }

        /**
         * {@link SoftElement#getElementAddr}
         */
        public SoftElementProxyFetcher elementAddr() {
            return add(getProxy().elementAddr());
        }

        @Override
        protected SoftElementProxyFetcher createFetcher(SoftElementProxy cp, AbstractFetcher<SoftElementProxy, SoftElement, SoftElementProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SoftElementProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
